﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GeometryViz3D.Model
{
    public abstract class G3DElement
    {
        public string Label
        {
            get;
            set;
        }

        public override int GetHashCode()
        {
            return Label.GetHashCode();
        }

        public override bool Equals(object obj)
        {
            if (obj != null && obj is G3DElement)
            {
                return Label == ((G3DElement)obj).Label;
            }
            else
            {
                return false;
            }
        }
    }
}
